package com.iplay.dahua.chapter1;

/**
 * @author dangwu
 * @since 2021/3/9 5:50 下午
 */
public class OperationTest {
    public static void main(String[] args) {
        Operation operation = OperationFactory.createOperation("+");
        operation.setNumberA(1);
        operation.setNumberB(2);
        double result = operation.getResult();
        System.out.println(result);
    }
}
